package App;
import java.util.HashSet;
import java.util.Set;


public class Gamme {
	
	private String nom;
	private Set<Option> options = new HashSet<Option>();
	
	public String getNom() {
		return nom;
	}
	
	public void setNom(String nom) {
		this.nom = nom;
	}
	
	public Set<Option> getOptions() {
		return options;
	}
	
	public void setOptions(Set<Option> options) {
		this.options = options;
	}
	
	public Gamme(String nom) {
		this.nom = nom;
	}
	
	public void addOption(Option option) {
		options.add(option);
	}
	
	public void removeOption(Option option) {
		options.remove(option);
	}
	
	public String toString() {
		String res = "Gamme : " + nom + "\n";
		res += "Option(s) :\n";
		for (Option option : options) {
			res += "- " + option;
		}
		return res;
	}
	
}
